/*
 * AutismUser2Validate2Group.java
 *
 * Created on March 19, 2007, 1:47 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.asaga.tools;

import java.util.*;
/**
 *
 * @author jeremys
 */
public class AutismUser2Validate2Group implements Comparable<AutismUser2Validate2Group> {
    private int personId;
    private String fname;
    private String lname;
    private String email;
    private int groupId;
    private String gname;
    /** Creates a new instance of AutismUser2Validate2Group */
    public AutismUser2Validate2Group() {
    }
    
    public void SetPersonId(int pid){this.personId=pid;}
    public void SetFname(String fn){this.fname=fn;}
    public void SetLname(String ln){this.lname=ln;}
    public void SetEmail(String e){this.email=e;}
    public void SetGroupId(int gid){this.groupId=gid;}
    public void SetGroupName(String gn){this.gname=gn;}
    
    public int GetPersonId(){return this.personId;}
    public String GetFname(){return this.fname;}
    public String GetLname(){return this.lname;}
    public String GetEmail(){return this.email;}
    public int GetGroupId(){return this.groupId;}
    public String GetGroupName(){return this.gname;}
    
    public int compareTo(AutismUser2Validate2Group a){
        int cmp = this.personId-a.GetPersonId();
        if(cmp==0){
            cmp = this.groupId - a.GetGroupId();
        }
        return cmp;
    }
    
}
